package com.qfmy.model.entity.wallpaper;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity
 * @date 2025/11/26
 * @description 壁纸评分实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class WallpaperRating {
    @Schema(description = "评分记录ID")
    private Integer id;

    @Schema(description = "评分用户ID（关联user表）")
    private Long userId;

    @Schema(description = "被评分壁纸ID（关联wallpaper表）")
    private Integer wallpaperId;

    @Schema(description = "评分值（1-5分，1最低，5最高）")
    private Double score;

    @Schema(description = "评分时间")
    private Date createTime;

    @Schema(description = "更新时间（允许用户修改评分）")
    private Date updateTime;

    @Schema(description = "逻辑删除标记（0：未删除，1：已删除）")
    private Integer isDeleted;
}
